package com.xjy.ftpmanagment.service;

import java.sql.Timestamp;
import java.util.List;

import com.xjy.common.service.BaseSrv;
import com.xjy.common.util.PageBean;
import com.xjy.ftpmanagment.dao.StatUserDao;
import com.xjy.ftpmanagment.pojo.StatUser;

public class StatUserService extends BaseSrv<StatUser, Integer>{
	private StatUserDao statUserDao;

	public StatUserDao getStatUserDao() {
		return statUserDao;
	}
	
	public void setStatUserDao(StatUserDao statUserDao) {
		this.statUserDao = statUserDao;
	}

	public PageBean queryForPage1(int page, int pageSize, String condition) {
		
		PageBean pageBean = statUserDao.getPageBean(condition, null, "", page, pageSize);
//		pageBean.setPageSize(pageSize);
//		pageBean.setCurrentPage(currentPage);
//		pageBean.setTotalPage(totalPage);
//		pageBean.setList(list);
		return pageBean;
	}
	
	public PageBean queryForPageDate(int page, int pageSize, String condition) {
		return statUserDao.queryForPageDate(page, pageSize, condition);
	}

	public void batchInsertStatUser(List<StatUser> statIpList, Timestamp startTime, Timestamp endTime) {
		statUserDao.batchInsert(statIpList, startTime, endTime);
	}
}
